/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2010 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 254 2010-07-23 05:14:44Z emartin24 $
 */

jQuery(function ($) {
	// Load dialog on page load
	//$('#basic-modal-content').modal();
	$('#basic-modal a').mouseover(function (e) {
		$('div.sidebar').css('z-index','106');
	});
	
	/* $('#basic-modal a').mouseout(function (e) {
		$('div.sidebar').css('z-index','98');
	}); */
	
	$('div.dropshadow').mouseover(function (e) {
		$('div.sidebar').css('z-index','98');
	});
	
	$('div.smalldropshadow').mouseover(function (e) {
		$('div.sidebar').css('z-index','98');
	});
	
	
	
	$('div#video_slide a').click(function (e) {
		$('div#video_slide').css('display','none');
		return false;
	});
	
	$('#video_slide_show').click(function (e) {
		$('div#video_slide').css('display','block');
		return false;
	});
	
	$('div#access_video_slide a').click(function (e) {
		$('div#access_video_slide').css('display','none');
		return false;
	});
	
	$('#open_video_slide').click(function (e) {
		$('div#access_video_slide').css('display','block');
		return false;
	});
	
	$('#gatic_login').click(function (e) {
		$('div#gatic_login_block').css('display','none');
		return false;
	});
	
	$('#duct_covers').click(function (e) {
		$('div#ducted_covers').css('display','block');
		return false;
	});
	
	$('#ducted_covers a').click(function (e) {
		$('div#ducted_covers').css('display','none');
		return false;
	});
	
	$('.product_selector_large_col img').click(function (e) {
		$('div#gatic_ultra').css('display','block');
		return false;
	});
	
	$('.product_selector_small_col img').click(function (e) {
		$('div#gatic_ultra').css('display','block');
		return false;
	});
	
	$('div#gatic_ultra a').click(function (e) {
		$('div#gatic_ultra').css('display','none');
		return false;
	});
	
	
	
	/* For view by product and application*/
	$('#view_by_product').click(function (e) {
		location.href = 'slotdrain_view_by_product.html';
	});	
	$('#view_by_app').click(function (e) {
		location.href = 'slotdrain_view_by_app.html';
	});
	
	/* ultra slot menu  */
	$('#ultra_menu_tech_details').click(function (e) {
		location.href = 'ultr_slot_range.html';
	});	
	$('#ultra_menu_case_studies').click(function (e) {
		location.href = 'ultr_slot_casestudy.html';
	});
	$('#ultra_menu_slot_app').click(function (e) {
		location.href = 'ultr_slot_typical_app.html';
	});	
	$('#ultra_menu_testimonial').click(function (e) {
		location.href = 'ultraslotdrain_testimonal.html';
	});
	$('#ultra_slot_features_benifits').click(function (e) {
		location.href = 'ultraslot_features_benefits.html';
	});
	
	$('#access_covers_viewbyapp').click(function (e) {
		location.href = 'access_covers_view_by_app.html';
	});
	$('#access_covers_viewbyprod').click(function (e) {
		location.href = 'access_covers_view_by_product.html';
	});
	
	$('#slotdrain_viewbyprod').click(function (e) {
		location.href = 'slotdrain_view_by_product.html';
	});
	$('#slotdrain_viewbyapp').click(function (e) {
		location.href = 'slotdrain_view_by_app.html';
	});
	$('#access_covers_benifits').click(function (e) {
		location.href = 'access_covers_benifits.html';
	});
	$('#access_duct_covers_benifits').click(function (e) {
		location.href = 'access_duct_covers_benifits.html';
	});
	
	$('#access_covers_load_cat').click(function (e) {
		location.href = 'access_covers_load_cat.html';
	});
	
	
	
	
});
	